import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ZhongJinTao
 * Date: 2024-04-12
 * Time: 21:12
 */
class GreaterIntComp implements Comparator<Integer> {
    public int compare(Integer o1, Integer o2) {
        return o2 -o1;
    }
}

public class Test2 {
    public static void main(String[] args) {
        GreaterIntComp greaterIntComp = new GreaterIntComp();

        Collections.sort();
        PriorityQueue<Integer> queue = new PriorityQueue<>(greaterIntComp);
    }
}
